package com.zhiyou100.www.bbs.entityclass;

/**
 * @Description: TODO 用户表 实体类
 * @date: 2020/6/4 3:59 下午
 * @author: yang
 */

public class TableUser {

    private Integer userId;
    private String userName;
    private String userPwd;
    private String userRealName;
    private String userHeadPortrait;
    private String userGender;
    private Integer userScore;
    private Integer userStatus;

    public TableUser(String userName, String userPwd) {
        this.userName = userName;
        this.userPwd = userPwd;
    }

    public TableUser(Integer userId, String userName, String userPwd, String userRealName, String userHeadPortrait, String userGender, Integer userScore, Integer userStatus) {
        this.userId = userId;
        this.userName = userName;
        this.userPwd = userPwd;
        this.userRealName = userRealName;
        this.userHeadPortrait = userHeadPortrait;
        this.userGender = userGender;
        this.userScore = userScore;
        this.userStatus = userStatus;
    }

  @Override
  public String toString() {
    return "TableUser{" +
            "userId=" + userId +
            ", userName='" + userName + '\'' +
            ", userPwd='" + userPwd + '\'' +
            ", userRealName='" + userRealName + '\'' +
            ", userHeadPortrait='" + userHeadPortrait + '\'' +
            ", userGender='" + userGender + '\'' +
            ", userScore=" + userScore +
            ", userStatus=" + userStatus +
            '}';
  }

  public TableUser() {

    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }


    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }


    public String getUserPwd() {
        return userPwd;
    }

    public void setUserPwd(String userPwd) {
        this.userPwd = userPwd;
    }


    public String getUserRealName() {
        return userRealName;
    }

    public void setUserRealName(String userRealName) {
        this.userRealName = userRealName;
    }


    public String getUserHeadPortrait() {
        // 返回 /bbs/images/1.jpg
        return "/bbs/images/" + userHeadPortrait;
    }

    public void setUserHeadPortrait(String userHeadPortrait) {
        this.userHeadPortrait = userHeadPortrait;
    }


    public String getUserGender() {
        return userGender;
    }

    public void setUserGender(String userGender) {
        this.userGender = userGender;
    }


    public Integer getUserScore() {
        return userScore;
    }

    public void setUserScore(Integer userScore) {
        this.userScore = userScore;
    }


    public Integer getUserStatus() {
        return userStatus;
    }

    public void setUserStatus(Integer userStatus) {
        this.userStatus = userStatus;
    }

}
